package com.ruoyi.btlfbreed.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 肉鸡死亡登记对象 tb_chicken_death_records
 * 
 * @author codeman
 * @date 2024-05-07
 */
public class TbChickenDeathRecords extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 记录ID（主键，自增） */
    private Long id;

    /** 肉鸡信息 */
    @Excel(name = "肉鸡信息")
    private Long chickenId;
    @Excel(name = "肉鸡信息")
    private String chickenNo;
    /** 死亡日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "死亡日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date deathDate;

    /** 饲养员 */
    @Excel(name = "饲养员")
    private Long userId;
    @Excel(name = "饲养员")
    private String userName;
    /** 死亡原因 */
    @Excel(name = "死亡原因")
    private String deathReason;

    /** 死亡时体重（单位：千克） */
    @Excel(name = "死亡时体重", readConverterExp = "单=位：千克")
    private Double deathWeight;

    /** 删除标志（0代表存在 1代表删除） */
    private String delFlag;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setChickenId(Long chickenId) 
    {
        this.chickenId = chickenId;
    }

    public Long getChickenId() 
    {
        return chickenId;
    }
    public void setDeathDate(Date deathDate) 
    {
        this.deathDate = deathDate;
    }

    public Date getDeathDate() 
    {
        return deathDate;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setDeathReason(String deathReason) 
    {
        this.deathReason = deathReason;
    }

    public String getDeathReason() 
    {
        return deathReason;
    }
    public void setDeathWeight(Double deathWeight) 
    {
        this.deathWeight = deathWeight;
    }

    public Double getDeathWeight() 
    {
        return deathWeight;
    }
    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }

    public String getChickenNo()
    {
        return chickenNo;
    }

    public void setChickenNo(String chickenNo)
    {
        this.chickenNo = chickenNo;
    }

    public String getUserName()
    {
        return userName;
    }

    public void setUserName(String userName)
    {
        this.userName = userName;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("chickenId", getChickenId())
            .append("deathDate", getDeathDate())
            .append("userId", getUserId())
            .append("deathReason", getDeathReason())
            .append("deathWeight", getDeathWeight())
            .append("remark", getRemark())
            .append("delFlag", getDelFlag())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
